package br.com.vorantim.broker;

import java.util.ArrayList;
import java.util.List;

import br.com.bb.broker.Broker;
import br.com.bb.stock.Stock;


public class BrokerVotorantim implements Broker {
	private List<Order> orders;

	public BrokerVotorantim() {
		this.orders = new ArrayList<Order>();
	}


	@Override
	public boolean pursharseOrder(String investorCode, Stock stock,int quantity, double orderPrice) {
		System.out.println("===>> Votorantim: Order received " + investorCode + " - " + stock.getCode() + " - " + quantity + " - " + orderPrice);
		Order order = new Order(investorCode, stock, quantity, orderPrice);
		this.orders.add(order);
		return true;
	}

}
